package com.example.demoback.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demoback.entity.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

//@Mapper
public interface UserMapper extends BaseMapper<User> {

//    @Select("select * from administrator")
//    List<User> findAll();//返回列表数据
//
//    int insert(User user); //返回影响的条数 int
//
//    int update(User user);
//
//    @Delete("delete from administrator where id = #{id}")
//    Integer deletebyid(Integer id);
//
//    @Select("select * from administrator where name like concat('%',#{name},'%') limit #{pageNum},#{pageSize}")
//    List<User> findbypage(Integer pageNum,Integer pageSize,String name);
//
//
//    @Select("select count(*) from administrator where name like concat('%',#{name},'%')")
//    Integer findTotal(String name);
}
